//
//  NoResultView.swift
//  TanTan
//
//  Created by 于航 on 2024/9/15.
//

import SwiftUI

struct NoResultView: View {
    var body: some View {
        VStack {
            CircleAvator(photo: "Cat4", size: 100)
                .padding(40)
            Text("Ops, There's no one left to swipe on! why not try editing your filters?")
                .foregroundStyle(.gray)
                .padding(.horizontal, 60)
                .padding(.bottom, 20)
            Button(action: /*@START_MENU_TOKEN@*/{}/*@END_MENU_TOKEN@*/, label: {
                Text("Edit Filters")
                    .frame(width: 250, height: 50)
                    .fontWeight(.semibold)
                    .foregroundColor(.white)
                    .background(Color.accentColor)
                    .cornerRadius(20)
            })
        }
        .frame(maxHeight: .infinity)
    }
}

#Preview {
    NoResultView()
}
